﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Function.Master" AutoEventWireup="true" CodeBehind="articleedit.aspx.cs" Inherits="LEARNREN.COM.WebSite.Admin.articleedit" ValidateRequest="false" %>

<%@ Register Src="../UserDefinedControls/SelectCatalogueDropDownList.ascx" TagName="SelectCatalogueDropDownList" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <link href="../umeditor1_2_2-utf8-net/themes/default/css/umeditor.min.css" rel="stylesheet" type="text/css" />
    <script src="../umeditor1_2_2-utf8-net/umeditor.config.js" type="text/javascript"></script>
    <script src="../umeditor1_2_2-utf8-net/umeditor.min.js" type="text/javascript"></script>
    <script src="../umeditor1_2_2-utf8-net/lang/zh-cn/zh-cn.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(function () {
            var um = UM.getEditor('<%=txtContent.ClientID%>');
            um.setWidth("100%");
            um.setHeight("300");
            $(".edui-body-container").css("width", "98%");
        }
        );
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <form id="Form1" class="ui-widget" style="color: #222;" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <div class="editblock">
        <asp:Label ID="TitleLabel" runat="server" AssociatedControlID="txtTitle">文章标题:</asp:Label>
        <asp:TextBox ID="txtTitle" runat="server"></asp:TextBox>
        <asp:RequiredFieldValidator ID="TitleRequired" runat="server" ControlToValidate="txtTitle" CssClass="failureNotification" ErrorMessage="必须填写“文章标题”。" ToolTip="文章标题" ValidationGroup="EditArticleValidationGroup">*</asp:RequiredFieldValidator>
    </div>
    <div class="editblock">
        <label style="line-height: 30px; float: left;">文章栏目:&nbsp;</label>
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
                <uc1:SelectCatalogueDropDownList ID="SelectCatalogueDropDownList1" runat="server" CanClickNodeType="ArticleList" CssClass="textEntry ui-widget-content ui-corner-all" EnableValidation="True" ValidationGroup="EditArticleValidationGroup" />
            </ContentTemplate>
        </asp:UpdatePanel>
    </div>
    <div class="clear">
    </div>
    <div class="editblock">
        <asp:Label ID="OrignSourceLabel" runat="server" AssociatedControlID="txtOrignSource">文章来源:</asp:Label>
        <asp:TextBox ID="txtOrignSource" runat="server"></asp:TextBox>
        <span class="failureNotification" style="visibility: hidden">*</span>
    </div>
    <div class="editblock">
        <asp:Label ID="OrignSourceUrlLabel" runat="server" AssociatedControlID="txtOrignSourceUrl">来源地址:</asp:Label>
        <asp:TextBox ID="txtOrignSourceUrl" runat="server"></asp:TextBox>
        <span class="failureNotification" style="visibility: hidden">*</span>
    </div>
    <div class="editblock">
        <asp:Label ID="KeyWordsLabel" runat="server" AssociatedControlID="txtKeyWords">关键词:</asp:Label>
        <asp:TextBox ID="txtKeyWords" runat="server"></asp:TextBox>
        <asp:RequiredFieldValidator ID="KeyWordsRequired" runat="server" ControlToValidate="txtKeyWords" CssClass="failureNotification" ErrorMessage="必须填写“关键词”。" ToolTip="必须填写“关键词”。" ValidationGroup="EditArticleValidationGroup">*</asp:RequiredFieldValidator>
    </div>
    <div class="clear">
    </div>
    <div>
        <asp:Label ID="SummaryLabel" runat="server" AssociatedControlID="txtSummary">文章摘要:</asp:Label>
        <asp:RequiredFieldValidator ID="SummaryRequired" runat="server" ControlToValidate="txtSummary" CssClass="failureNotification" ErrorMessage="必须填写“文章摘要”。" ToolTip="必须填写“文章摘要”。" ValidationGroup="EditArticleValidationGroup">*</asp:RequiredFieldValidator>
        <asp:TextBox ID="txtSummary" runat="server" TextMode="MultiLine" Rows="5" Style="padding: 0px; width: 100%;"></asp:TextBox>
    </div>
    <div class="clear">
    </div>
    <div style="float: none;">
        <asp:Label ID="ContentLabel" runat="server" AssociatedControlID="txtContent">文章内容:</asp:Label>
        <asp:TextBox ID="txtContent" runat="server" TextMode="MultiLine" Rows="10" Columns="1000" CausesValidation="false"></asp:TextBox>
    </div>
    <div class="clear" style="height: 10px;">
    </div>
    <div style="float: none; text-align: right">
        <asp:Button ID="btnSaveArticle" runat="server" CommandName="MoveNext" Text="保存文章" ValidationGroup="EditArticleValidationGroup" OnClick="btnSaveArticle_Click" />
    </div>
    </form>
</asp:Content>
